#ifndef _ACCEPTOR_H_INCLUDED_
#define _ACCEPTOR_H_INCLUDED_
#include "core.h"
#include "lib/type.h" //记得改makefile，不要使用这样的路径名

class Acceptor
{
private:
    /*epollEngine& IOMultiplexer;
    doubleBufferedQueue<epoll_event>& IOQueue;
    int serverSocket;*/
    cycle_t& utils;
    int status = 0;
    //禁用拷贝构造函数
    Acceptor() = delete;
    Acceptor(const Acceptor&) = delete;
    Acceptor& operator= (const Acceptor&) = delete;

public:
    //Acceptor(epollEngine& ep, doubleBufferedQueue<epoll_event>& q, int s);

    Acceptor(cycle_t& a):
    utils(a){}
    void AcceptorCycle(); //Accpetor线程主循环
    void run();
    ~Acceptor() = default;
};


#endif